package kr.co.hanbit;

public class VarTest {
	/*public void argTest(String str1, String str2){
		System.out.println(str1);
		System.out.println(str2);
	}
	public void argTest(String str1, String str2,String str3, String str4){
		System.out.println(str1);
		System.out.println(str2);
		System.out.println(str3);
		System.out.println(str4);
	}*/
	public void argTest(String ...n){
		for(int i=0;i<n.length;i++)
			System.out.println("n["+i+"]:"+n[i]);
			System.out.println("-------------");
		
	}
	public static void main(String[] args) {
		VarTest vt = new VarTest();
		vt.argTest("Varargs","Test");
		
		vt.argTest("100","600","900","1000");
		
	}
}
